package com.cssl.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 
 * @TableName att_evection
 */
@TableName(value ="att_evection")
@Data
public class AttEvection implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 出差员工id
     */
    private Integer staff_Id;

    /**
     * 出差天数
     */
    private Integer days;

    /**
     * 0未审核，1通过，2不通过,默认0
     */
    private Integer status;

    /**
     * 
     */
    private String remark;

    /**
     * 开始出差日期
     */
    private String evection_time;

    /**
     * 出差地
     */
    private String evection_land;

    private String cause;

    @TableField(exist = false)
    private List<SysStaff> sysStaffs;

    @TableField(exist = false)
    private List<SysDept> depts;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;



    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStaff_Id() == null) ? 0 : getStaff_Id().hashCode());
        result = prime * result + ((getDays() == null) ? 0 : getDays().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getEvection_time() == null) ? 0 : getEvection_time().hashCode());
        result = prime * result + ((getEvection_land() == null) ? 0 : getEvection_land().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", staffId=").append(staff_Id);
        sb.append(", days=").append(days);
        sb.append(", status=").append(status);
        sb.append(", remark=").append(remark);
        sb.append(", evectionTime=").append(evection_time);
        sb.append(", evectionLand=").append(evection_land);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}